package mdb;

import java.util.Vector;

public class MdbModel {
    private String m1 = "0.95";
    private String m2 = "0.95";
    private String m3 = "0.95";
    private String a1 = "0.95";
    private String a2 = "0.95";
    private String minDiaSet = "{m1},\n{a1},\n{m2,m3},\n{m2,a2}\n";
    private Vector tableData;

    public Vector getTableData() {
        if (tableData == null) {
            tableData = new Vector();
        }
        return tableData;
    }
    public void setTableData(Vector tableData) {
        this.tableData = tableData;
    }
    public String getMinDiaSet() {
        return minDiaSet;
    }
    public void setMinDiaSet(String minDiaSet) {
        this.minDiaSet = minDiaSet;
    }
    public String getM1() {
        return m1;
    }
    public void setM1(String m1) {
        this.m1 = m1;
    }
    public String getM2() {
        return m2;
    }
    public void setM2(String m2) {
        this.m2 = m2;
    }
    public String getM3() {
        return m3;
    }
    public void setM3(String m3) {
        this.m3 = m3;
    }
    public String getA1() {
        return a1;
    }
    public void setA1(String a1) {
        this.a1 = a1;
    }
    public String getA2() {
        return a2;
    }
    public void setA2(String a2) {
        this.a2 = a2;
    }
    public String getProbabilityByIndex(int index) {
        switch (index) {
        case 0 : return getM1();
        case 1 : return getM2();
        case 2 : return getM3();
        case 3 : return getA1();
        case 4 : return getA2();
        }
        return "0";
    }
}
